import request from '@/router/axios'

export function contentPage(params) {
  return request({
    url: '/sms-api/find/content/contentPage',
    method: 'get',
    params
  })
}

export function delContent(params) {
  return request({
    url: '/sms-api/find/content/delContent',
    method: 'get',
    params
  })
}

export function contentDetails(params) {
  return request({
    url: '/sms-api//find/content/contentDetails',
    method: 'get',
    params
  })
}

export function columnList() {
  return request({
    url: '/sms-api/find/column/columnList',
    method: 'get',
  })
}

export function examineContent(data) {
  return request({
    url: '/sms-api/find/content/examineContent',
    method: 'post',
    data: data
  })
}

export function repeatContent(data) {
  return request({
    url: '/sms-api/find/content/repeatContent',
    method: 'post',
    data: data
  })
}

export function closeContent(data) {
  return request({
    url: '/sms-api/find/content/closeContent',
    method: 'get',
    params: data
  })
}

//---- 栏目 ---
export function columnPage(data) {
  return request({
    url: '/sms-api/find/column/columnPage',
    method: 'get',
    params: data
  })
}

export function delColumn(data) {
  return request({
    url: '/sms-api/find/column/delColumn',
    method: 'get',
    params: data
  })
}

export function addColumn(data) {
  return request({
    url: '/sms-api/find/column/addColumn',
    method: 'post',
    data: data
  })
}

export function updateColumn(data) {
  return request({
    url: '/sms-api/find/column/updateColumn',
    method: 'post',
    data: data
  })
}

// --- 会员----
export function findMemberPage(data) {
  return request({
    url: '/ums-api/ums/member/findMemberPage',
    method: 'get',
    params: data
  })
}

export function reviseIsContent(data) {
  return request({
    url: '/ums-api/ums/member/reviseIsContent',
    method: 'get',
    params: data
  })
}
